<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title> ${title} </title>
<link rel="stylesheet" type="text/css" href="${cache}/css/common.css">

</head>

<body>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="${cache}/images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="${cache}/images/tab_05.gif">
        <img src="${cache}/images/311.gif" width="16" height="16" /> <span class="STYLE4"> 
             乾坤交易系统下载管理
         </span></td>
        <td width="281" background="${cache}/images/tab_05.gif">
           <table border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
              <td width="60">
               <table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr style="cursor:pointer" onclick="publishSoft('${base}/toDownloadInfo.do')">
                    <td class="STYLE1"><div align="center"><img src="${cache}/images/001.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"><div align="center"  >新增</div></td>
                  </tr>
              </table> 
             </td>
            </tr>
            </table>
        </td>
        <td width="14"><img src="${cache}/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
       </table>
    </td>
  </tr>
  <tr>
    <td height="60">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
           <tr height="60px" >
              <td width="9" background="${cache}/images/tab_12.gif">&nbsp;</td>
              <td bgcolor="#f3ffe3"> 
                      <div style="font-size:12px;text-align:center">
                              <form method="post" id="queryForm">
                               &nbsp; 
                               <label>名称:</label>
                               <input name="downName" style="width:100px">
                               &nbsp;&nbsp;
                               <label>类型:</label>
                                <select name="downType" style="width:100px;font-size:12px">
                                    <option value="">全部</option>
                                    [#list SoftTypes as ty]
                                    <option value="${ty.value}">${ty.name}</option> 
                                    [/#list]
                                </select>
                                &nbsp;&nbsp;
                                <label>发布日期:</label>
                                <input name="startDate" style="width:100px" readonly="true" onclick="new WdatePicker()">
                                -
                                <input name="endDate" style="width:100px" readonly="true" onclick="new WdatePicker()">
                                
                                &nbsp;&nbsp;
                                <input type="button" value="查询" onclick="queryDownLoadForm(1,10)">
                              </form>
                           </div> 
              </td>
              <td width="9"  background="${cache}/images/tab_16.gif">&nbsp;</td>
           </tr>

        </table>
    </td>
  </tr>
   
  <tr>
     <td id="downContent">
          
     </td> 
  </tr>
   </table>
  </td>
  </tr>
</table>  
<script type="text/javascript" src="${cache}/js/jquery.js"></script>
<script type="text/javascript" src="${cache}/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${cache}/js/common/table.js"></script>
<script type="text/javascript">
     var base ="${base}";
     function queryDownLoadForm(pageIndex,pageSize)
     {
          var url =base+"/downloadList.do?pageIndex="+pageIndex+"&pageSize="+pageSize;
          var params =jQuery("#queryForm").serialize();
          params=decodeURIComponent(params,true); 
          jQuery("#downContent").load(url+"&"+ encodeURI(encodeURI(params)));
     }

     jQuery(function()
      {
             queryDownLoadForm(1,10);
      }
      );


     function gotoPage(pageSize)
     {
        var pageIndex =jQuery("#pageIndex").val();
        queryDownLoadForm(pageIndex,pageSize);
     }
   

     function publishSoft(url)
     {
         location.href=url;
     }


     function delSoft(id)
     {
           if(window.confirm("确定要删除该条记录?"))
           {
              var url =base+"/deleteDownload.do";
              jQuery.post(
                       url,
                       {softId:id},
                      function(result){
                         queryDownLoadForm(1,10);
                      });
           }
     }

     function toEditSoft(id)
     {
            var url =base+"/toEditDownloadInfo.do?softId="+id;
            location.href=url;
     }
      
</script>
</body>
</html>
